package com.soft.javase.day04.fly;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/21
 */
public class Test {
    public static void makeFly(CanFly flyer) {
        flyer.fly();
    }

    public static void main(String[] args) {

        CanFly airplane = new Airplane();
        CanFly bird = new Bird();

        makeFly(airplane);
        makeFly(bird);
    }
}
